<%-- 
    Document   : error
    Created on : 28/04/2008, 22:45:39
    Author     : DidierLeung
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="pageTitle" value="Error Warning" scope="page"/>
<jsp:useBean id="vmBean" scope="application" class="au.edu.swin.unilearn.SubmissionManagedBean" />
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>${pageTitle}</title>
    </head>
    <body>
        <f:view>
            <!-- Show error messages -->
            <h:messages showSummary="true" showDetail="false"
                        style="color: red;
                        font-family: 'New Century Schoolbook', serif;
                        font-style: oblique"
                        id="errors"/>
            <table border="1" rules="groups">
                <tr>
                    <td>
                        <h2>Error Warning</h2>
                    </td>
                </tr>
                <tr>
                    <td>
                        <hr />
                    </td>
                </tr>
                <tr>
                    <td>
                        <h3>Please correct the following error</h3>
                        <ul>
                            <li><h:outputText value="#{SubmissionManagedBean.errorMessage}" />
                        </ul>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="button" name="back" value="< Back" onClick="history.go(-1)" />
                    </td>
                </tr>
            </table>
        </f:view>
    </body>
</html>
